package com.zareal.ymcc.feign;

import com.zareal.ymcc.doc.CourseSearchDoc;
import com.zareal.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search", fallbackFactory = CourseSearchFeignFallbackFactory.class)
public interface CourseSearchFeign {
    @PostMapping("/courseEs/saveCourseEs")
    JSONResult saveCourseEs(@RequestBody CourseSearchDoc courseSearchDoc);
    @PostMapping("/courseEs/deletCourseEs")
    JSONResult deletCourseEs(@RequestBody Long courseId);
}
